package com.example.c_app;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class Show extends AppCompatActivity {

    private TextView tv_name;
    private TextView tv_id;
    private TextView tv_password;
    private TextView tv_emial;
    private TextView tv_sex;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);
        initView();
    }

    private void initView() {
        tv_name = (TextView) findViewById(R.id.tv_name);
        tv_id = (TextView) findViewById(R.id.tv_id);
        tv_password = (TextView) findViewById(R.id.tv_password);
        tv_emial = (TextView) findViewById(R.id.tv_emial);
        tv_sex = (TextView) findViewById(R.id.tv_sex);

        Intent intent=getIntent();

        tv_name.setText("姓名:"+intent.getStringExtra("name"));
        tv_id.setText("身份证号:"+intent.getStringExtra("id"));
        tv_password.setText("密码:"+intent.getStringExtra("password"));
        tv_emial.setText("邮箱:"+intent.getStringExtra("emial"));
        tv_sex.setText("性别:"+intent.getStringExtra("sex"));
    }
}
